/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package Server;

import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.springframework.orm.hibernate4.HibernateTemplate;

public class ShareFiletitfImpl extends HibernateTemplate implements ShareFiletitf {

    @Override
    public void add(Filetbl f) {
        super.save(f);
//        SessionFactory sf = NewHibernateUtil.getSessionFactory();
//        Session session = sf.openSession();
//        Transaction ta = session.beginTransaction();
//        try {
//            session.save(f);
//            ta.commit();
//        } catch (Exception e) {
//            ta.rollback();
//        }finally{
//            session.close();
//        }
    }

    @Override
    public void delete(Filetbl f) {
        super.delete(f);
    }

    @Override
    public void get(Filetbl f) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public void list(Filetbl f) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }
    
}
